package com.example.demo.domain.security;


import lombok.Data;

import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.ArrayList;
import java.util.List;

@Data
@Entity
public class Role {
    @Id
    String name;

    String remark;

    //权限列表
    //每个权限使用一个字符串表示
    @Convert(converter = StringListConverter.class)
    List<String> authorities = new ArrayList<>();
}
